using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MimeCloud.AssetManagement.Business.Interface;

namespace MimeCloud.AssetManagement.AssetRendering.AssetContent
{
    public class AssetContentControlProvider
    {
        public static IAssetContentViewer ProvideViewerControl (IAssetContent content)
        {
            IAssetContentViewer result;
            switch (content.MimeType._MimeType)
            {
                
                case "image\\jpeg":
                    result = new ImageContentViewer();
                    break;
                case "video\\flv":
                    result = new FlashContentViewer();
                    break;
                default:
                    goto case "image\\jpeg";
            }
            result.DisplayAssetContent(content);
            return result;
        }
    }
}
